import { createRouter, createWebHashHistory } from  'vue-router'

export const routes =  [
  {
    path: '/HelloWorld',
    name: 'HelloWorld',
    component: () => import('../components/HelloWorld.vue')
  },
  {
    path: '/',
    name: 'home',
    component: () => import('../views/home/index.vue')
    // component: HelloWorld
  },
]
const router = createRouter({
  history: createWebHashHistory(), //hash模式  createWebHashHistory, history模式：createWebHistory
  routes
})
export default router